Skip to content

Conversation

@nastra
Copy link
Contributor

@nastra nastra commented Sep 20, 2024

This implements the Spec changes from #10722

@nastra nastra marked this pull request as draft September 20, 2024 13:10
@github-actions github-actions bot added the core label Sep 20, 2024
@nastra nastra force-pushed the standardized-credentials branch from 8c78bf8 to 72ced3e Compare September 20, 2024 13:32
@nastra nastra force-pushed the standardized-credentials branch 2 times, most recently from fc38274 to 5c517fb Compare October 10, 2024 07:48
@nastra nastra force-pushed the standardized-credentials branch from 5c517fb to 9f33b09 Compare October 15, 2024 09:45
@nastra nastra marked this pull request as ready for review October 15, 2024 09:45

public static Credential fromJson(JsonNode json) {
Preconditions.checkArgument(null != json, "Cannot parse credential from null object");
String prefix = JsonUtil.getString(PREFIX, json);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we need a check to make sure prefix isn't empty?

Copy link
Contributor Author

@nastra nastra Oct 17, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hm yeah good point, we should maybe do the same for the config to make sure the config isn't empty. I've done that and added a test


gen.writeStartObject();

gen.writeStringField(PREFIX, credential.prefix());
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same as below I think we need validation that the prefix isn't empty before serializing it?

Copy link
Contributor

@amogh-jahagirdar amogh-jahagirdar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @nastra this looks good to me!

@nastra nastra merged commit 8dc9eac into apache:main Oct 18, 2024
@nastra nastra deleted the standardized-credentials branch October 18, 2024 17:24
zachdisc pushed a commit to zachdisc/iceberg that referenced this pull request Dec 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants